<?php 
	if($_POST['submit']){
		update_option('web589BP_introduce_page',$_POST['page_id']);
		update_option('web589BP_product_cat',$_POST['cat']);
		update_option('web589BP_copyright',$_POST['copyright']);
	}
?>

<style type="text/css">
#index_form{width:600px; border:1px solid #ddd; background-color:#f7f7f7; margin:20px 0; padding:10px;}
#index_form label{margin-right:10px;}
#index_form textarea{width:580px; height:100px; margin-top:10px;}
</style>

<div class="wrap">
<div id="icon-options-general" class="icon32"><br></div><h2>首页选项</h2>

<form action="" method="post" id="index_form">
	<p><label for="page_id">简介页面</label>
	<?php wp_dropdown_pages(array('selected'=>get_option('web589BP_introduce_page')));?>
	</p>
	<p><label for="cat">产品展示</label>
	<?php wp_dropdown_categories(array('selected'=>get_option('web589BP_product_cat'),'show_options_all'=>true,'hierarchical'=>true));?>
	</p>
	<p><label for="copyright">底部版权及统计代码</label>
	<textarea id="copyright" name="copyright"><?php echo stripslashes(get_option('web589BP_copyright')); ?></textarea></p>
	<?php submit_button();?>
</form>

	<p>主题设置教程：<a href="http://www.daxiawp.com/wp-theme/dx-bpro%E6%B8%85%E7%88%BD%E5%9E%8B%E4%BC%81%E4%B8%9A%E4%B8%BB%E9%A2%98/" target="_blank">http://www.daxiawp.com/wp-theme/dx-bpro%E6%B8%85%E7%88%BD%E5%9E%8B%E4%BC%81%E4%B8%9A%E4%B8%BB%E9%A2%98/</a></p>
	<p>wordpress主题定制、插件开发等请联系QQ: <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=1683134075&amp;site=qq&amp;menu=yes" ><img border="0" src="http://wpa.qq.com/pa?p=2:1683134075:41" alt="点击这里给我发消息" title="点击这里给我发消息">(1683134075)</a></p>

</div>